﻿@using Microsoft.AspNet.Identity
@model CloudStorageLight.Web.Models.ManageUserViewModel

@using (Html.BeginForm("Manage", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    @Html.AntiForgeryToken()
    <h4>@(CloudStorageLight.Core.Web.ViewMessages.MsgChangePassword)</h4>
    <hr />
    @Html.ValidationSummary("", new { @class = "text-danger" })
    <div class="form-group">
        <p class="col-md-3 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgOldPassword)</p>
        <div class="col-md-9">
            @Html.PasswordFor(m => m.OldPassword, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <p class="col-md-3 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgNewPassword)</p>
        <div class="col-md-9">
            @Html.PasswordFor(m => m.NewPassword, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        <p class="col-md-3 control-label">@(CloudStorageLight.Core.Web.ViewMessages.MsgConfirmPassword)</p>
        <div class="col-md-9">
            @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
        </div>
    </div>

    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" value="@CloudStorageLight.Core.Web.ViewMessages.MsgSave" class="btn btn-default" />
        </div>
    </div>
}
